{% load myfilter %}
<h2 class="contentTitle">邮箱设置</h2>
<div class="pageContent">
	<form method="POST" action="/market/emailset/" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		{% csrf_token %}
        <div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>SMTP：</dt>
				<dd>
					<input value="{% if ecdict %} {{ ecdict|key:"smtp_address" }} {% endif %}" type="text" name="smtp_address" maxlength="40" size="40" class="required" alt="SMTP地址"/>
				</dd>
			</dl>
            <dl></dl>
			<dl>
				<dt>SMTP端口：</dt>
				<dd>
					<input value="{% if ecdict %} {{ ecdict|key:"smtp_port" }} {% endif %}" type="text" name="smtp_port" maxlength="40" size="40" class="required number" alt="SMTP端口号"/>
				</dd>
			</dl>
            </br>
			<dl>
				<dt>SMTP邮箱：</dt>
				<dd>
					<input value="{% if ecdict %} {{ ecdict|key:"smtp_email" }} {% endif %}" type="text" name="smtp_email" maxlength="40" size="40" class="required email" alt="请输入您邮箱"/>
				</dd>
			</dl>
            <dl></dl>
            <dl>
				<dt>SMTP账号：</dt>
				<dd>
					<input value="{% if ecdict %} {{ ecdict|key:"smtp_user" }} {% endif %}" type="text" name="smtp_user" size="40" class="required" alt="请输入您的账号"/>
				</dd>
			</dl>
            <dl></dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input value="" id="w_validation_pwd" type="password" name="smtp_password" size="40" class="required" maxlength="20" alt="邮箱密码"/><font style="color: #e50000">每次修改信息都要重新填写一次密码</font>
				</dd>
			</dl>

			<div class="divider"></div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>

</div>

<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
